<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      iframe {
        width: 100%;
        height: 1200px;
        border: none;
        margin: 0 auto;
        background: pink;
      }
      /* body {
        overflow: hidden;
      } 也可以去掉滚动条，效果不好 推荐采用scrolling属性 scrolling="no" */
    </style>
  </head>
  <body>
    <a href="//baidu.com" target="xxx">百度</a>
    <a href="//xiedaimala.com" target="xxx">写代码啦</a>
    <a
      href="//www.runoob.com/try/try.php?filename=tryhtml_iframe_scrolling"
      target="xxx"
      >菜鸟教程</a
    >
    <br />
    <br />
    <iframe src="" frameborder="0" name="xxx" scrolling="no"></iframe>
  </body>
</html>
